package com.zhang.mapper;

import com.zhang.entity.dto.CompleteMissionDto;
import com.zhang.entity.dto.MissionDto;
import com.zhang.entity.dto.MyBugMissionDto;
import com.zhang.entity.vo.DispatchMissionBody;
import com.zhang.entity.vo.MissionBody;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * User: 张
 * Date: 2024-11-13
 * Time: 9:20
 * Description:
 */
@Mapper
public interface MissionPersonMapper {
    @Insert("insert into visions_sort.mission_person " +
            "(user_id, bug_id, message) " +
            "VALUE " +
            "(#{userId},#{bugId},#{message})")
    public int addMissionPerson(DispatchMissionBody dispatchMission);

    public List<MyBugMissionDto> getMyBugMission(Integer userId);

    public int completeMission(CompleteMissionDto completeMissionDto);
    public List<MissionDto> getMission(MissionBody missionBody);
}
